/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

//import anet.channel.strategy.dispatch.DispatchConstants;
import java.util.List;
//import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class Question {
    @Nullable
    private final String answerAndAnalyze;
    @Nullable
    private final List<Konwledge> knowledgeVos;
    private final boolean needReplenishAnswer;
    @NotNull
    private final String questionAndOption;
    @NotNull
    private final String questionId;
    @NotNull
    private final String questionType;
    @Nullable
    private final List<Video> videoVos;

    public Question(@NotNull String questionId, @NotNull String questionType, @NotNull String questionAndOption, @Nullable String str, boolean z, @Nullable List<Video> list, @Nullable List<Konwledge> list2) {
        this.questionId = questionId;
        this.questionType = questionType;
        this.questionAndOption = questionAndOption;
        this.answerAndAnalyze = str;
        this.needReplenishAnswer = z;
        this.videoVos = list;
        this.knowledgeVos = list2;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public static /* synthetic */ Question copy$default(Question question, String str, String str2, String str3, String str4, boolean z, List list, List list2, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            str = question.questionId;
        }
        if ((i2 & 2) != 0) {
            str2 = question.questionType;
        }
        if ((i2 & 4) != 0) {
            str3 = question.questionAndOption;
        }
        if ((i2 & 8) != 0) {
            str4 = question.answerAndAnalyze;
        }
        if ((i2 & 16) != 0) {
            z = question.needReplenishAnswer;
        }
        if ((i2 & 32) != 0) {
            list = question.videoVos;
        }
        if ((i2 & 64) != 0) {
            list2 = question.knowledgeVos;
        }
        return question.copy(str, str2, str3, str4, z, list, list2);
    }

    @NotNull
    public final String component1() {
        return this.questionId;
    }

    @NotNull
    public final String component2() {
        return this.questionType;
    }

    @NotNull
    public final String component3() {
        return this.questionAndOption;
    }

    @Nullable
    public final String component4() {
        return this.answerAndAnalyze;
    }

    public final boolean component5() {
        return this.needReplenishAnswer;
    }

    @Nullable
    public final List<Video> component6() {
        return this.videoVos;
    }

    @Nullable
    public final List<Konwledge> component7() {
        return this.knowledgeVos;
    }

    @NotNull
    public final Question copy(@NotNull String questionId, @NotNull String questionType, @NotNull String questionAndOption, @Nullable String str, boolean z, @Nullable List<Video> list, @Nullable List<Konwledge> list2) {
        Intrinsics.checkNotNullParameter(questionId, "questionId");
        Intrinsics.checkNotNullParameter(questionType, "questionType");
        Intrinsics.checkNotNullParameter(questionAndOption, "questionAndOption");
        return new Question(questionId, questionType, questionAndOption, str, z, list, list2);
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof Question)) {
            return false;
        }
        Question question = (Question) obj;
        return Intrinsics.areEqual(this.questionId, question.questionId) && Intrinsics.areEqual(this.questionType, question.questionType) && Intrinsics.areEqual(this.questionAndOption, question.questionAndOption) && Intrinsics.areEqual(this.answerAndAnalyze, question.answerAndAnalyze) && this.needReplenishAnswer == question.needReplenishAnswer && Intrinsics.areEqual(this.videoVos, question.videoVos) && Intrinsics.areEqual(this.knowledgeVos, question.knowledgeVos);
    }

    @Nullable
    public final String getAnswerAndAnalyze() {
        return this.answerAndAnalyze;
    }

    @Nullable
    public final List<Konwledge> getKnowledgeVos() {
        return this.knowledgeVos;
    }

    public final boolean getNeedReplenishAnswer() {
        return this.needReplenishAnswer;
    }

    @NotNull
    public final String getQuestionAndOption() {
        return this.questionAndOption;
    }

    @NotNull
    public final String getQuestionId() {
        return this.questionId;
    }

    @NotNull
    public final String getQuestionType() {
        return this.questionType;
    }

    @Nullable
    public final List<Video> getVideoVos() {
        return this.videoVos;
    }

    public int hashCode() {
        int hashCode = ((((this.questionId.hashCode() * 31) + this.questionType.hashCode()) * 31) + this.questionAndOption.hashCode()) * 31;
        String str = this.answerAndAnalyze;
        int i2 = 0;
        int hashCode2 = (hashCode + (str == null ? 0 : str.hashCode())) * 31;
        boolean z = this.needReplenishAnswer;
        if (z) {
            z = true;
        }
        int i3 = z ? 1 : 0;
        int i4 = z ? 1 : 0;
        int i5 = z ? 1 : 0;
        int i6 = (hashCode2 + i3) * 31;
        List<Video> list = this.videoVos;
        int hashCode3 = (i6 + (list == null ? 0 : list.hashCode())) * 31;
        List<Konwledge> list2 = this.knowledgeVos;
        if (list2 != null) {
            i2 = list2.hashCode();
        }
        return hashCode3 + i2;
    }

    @NotNull
    public String toString() {
        return "Question(questionId=" + this.questionId + ", questionType=" + this.questionType + ", questionAndOption=" + this.questionAndOption + ", answerAndAnalyze=" + this.answerAndAnalyze + ", needReplenishAnswer=" + this.needReplenishAnswer + ", videoVos=" + this.videoVos + ", knowledgeVos=" + this.knowledgeVos + ')';
    }
}